# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(
    ['H:\\MY\\python\\wpython\\top\\wardyan\\projects\\checktool\\autokill\\sticklistmain.py'],
    pathex=["H:\\MY\\python\\wpython\\", "H:\\MY\\python\\wpython\\.venv\\Lib\\site-packages\\"],
    binaries=[],
    datas=[],
    hiddenimports=[
        "paho",
        "paho.mqtt",
        "paho.mqtt.client",
        "apscheduler",
        "apscheduler.schedulers",
        "apscheduler.schedulers.background",
        "DBUtils",
        "loguru",
        "pymssql",
        "PyMySQL",
        "requests",
        "requests-toolbelt",
        "httpx",
        "httpcore",
        # PySide6相关模块
        "PySide6",
        "PySide6.QtCore",
        "PySide6.QtGui",
        "PySide6.QtWidgets",
    ],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[
        # 排除不必要的模块以减小文件大小
        "tkinter",
        "unittest",
        "email",
        "http.server",
        "xmlrpc",
        "pydoc",
        "doctest",
        "argparse",
        "difflib",
        "inspect",
    ],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
    noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='sticklistmain',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    icon='umbrella.ico',
    version="file_verison_info.txt"
)